package com.cian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 子终端对应的商品库存在mysql的持久表
 * </p>
 *
 * @author Cian
 * @since 2021-03-09
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @ApiModel(value="Stock对象", description="子终端对应的商品库存在mysql的持久表")
public class Stock implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty(value = "库存中每一项商品对应的id号码")
      @TableId(value = "stock_id", type = IdType.AUTO)
      private Integer stockId;

      @ApiModelProperty(value = "商品价格")
      private Double price;

      @ApiModelProperty(value = "商品存量")
      private Integer amount;

      @ApiModelProperty(value = "乐观锁")
      private Integer version;

      @ApiModelProperty(value = "子终端对应的识别号")
      private String sCode;

      @ApiModelProperty(value = "详细商品的id")
      private Integer coId;

      @ApiModelProperty(value = "商品的活动id，用字符串，连接")
      private String activityId;


}
